import { persistEnhancer } from 'dva-model-persist';
import storage from 'dva-model-persist/lib/storage';

export const dva = {
  config: {
    extraEnhancers: [
      persistEnhancer({
        key: 'doctor',
        storage,
      }),
    ],
  },
};

export function render(oldRender) {
  oldRender();
}

export function onRouteChange({ routes, matchedRoutes, location, action }) {
  console.log('onRouteChange', routes, matchedRoutes, location, action);
}
